package edu.xlh.travel.controller.user;

import edu.xlh.travel.common.Result;
import edu.xlh.travel.service.ScoreDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/fore_scoreDetail")
@CrossOrigin
public class ForeScoreDetailController {

    @Autowired
    private ScoreDetailService scoreDetailService;

    @RequestMapping("/sign")
    @ResponseBody
    public Result sign(HttpSession session) {
        return scoreDetailService.sign(session);
    }
}
